import LazyLoad from "../../utils/lazyLoad"
import LoginView from '../../components/LoginView'
import Container from '../../components/Container'

const baseRouter =  [
    {path: '/', element: <LoginView></LoginView>},
    {
        path: '/main/*',
        element: <Container></Container>,
        children: [
            {path: 'center', element: LazyLoad('/Center')},
            {path: 'message', element: LazyLoad('/Message')},
            {path: 'person', element: LazyLoad('/Person')},
            {path: 'info', element: LazyLoad('/Info')},
            {path: 'dasheninfo', element: LazyLoad('/DashenInfo')},
            {path: 'chat', element: LazyLoad('/Chat')},
        ]
    }
]

export default baseRouter
